import message from '@/message'

class MessageManager {
  constructor() {
    this.messages = message;
  }

  init(message) {
    this.messages.receive('test',()=>{
      console.log('test')
    })
    setTimeout(()=>{
      this.messages.send({
        type:'aaa',
        body:{

        }
      })
    },2000)
  }


}
export default new MessageManager()